#
#  Be sure to run `pod spec lint CAIImagePickerController.podspec' to ensure this is a
#  valid spec and to remove all comments including this before submitting the spec.
#
#  To learn more about Podspec attributes see https://guides.cocoapods.org/syntax/podspec.html
#  To see working Podspecs in the CocoaPods repo see https://github.com/CocoaPods/Specs/
#

Pod::Spec.new do |s|

  # ―――  s Metadata  ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
  #
  #  These will help people to find your library, and whilst it
  #  can feel like a chore to fill in it's definitely to your advantage. The
  #  summary should be tweet-length, and the description more in depth.
  #

  s.name         = "CAIImagePickerControllerKit"
  s.version      = "1.2.18"
  s.summary      = "A CAIImagePickerControllerKit."


  s.description  = <<-DESC
  chs图片库二次封装重构,修改变量名，内部类名；
                   DESC

  s.homepage     = "https://gitee.com/zj1208/ZXImagePickerControllerKit"
  s.license      = { :type => 'MIT', :file => 'LICENSE' }



  s.author             = { "海参" => "879654715@qq.com" }
  s.ios.deployment_target = '9.0'



  s.source       = { :git => "https://gitee.com/zj1208/ZXImagePickerControllerKit.git", :tag => "#{s.version}" }


  s.source_files  = "CAIImagePickerControllerKit/Classes/{CAIImagePickerController}/*"

  

  s.subspec 'CAIPhotoBrowser' do |ss|
     ss.source_files     = 'CAIImagePickerControllerKit/Classes/CAIPhotoBrowser/**/*'
     ss.dependency 'SDWebImage', '>=5.6.1'
  end
  
  s.subspec 'CAIImagePickerKitTool' do |ss|
     ss.source_files     = 'CAIImagePickerControllerKit/Classes/{CAIImagePickerKitTool.*}'
  end
  

#  有问题，可能是资源问题，待优化；
  s.subspec 'CAICameraOverlayView' do |ss|
     ss.source_files     = 'CAIImagePickerControllerKit/Classes/CAICameraOverlayView/**/*'
     ss.dependency 'CAIImagePickerControllerKit/CAIPhotoBrowser'
     ss.dependency "Masonry"
     ss.dependency 'MBProgressHUD', '>=1.1.0'
     ss.dependency 'CAIImagePickerControllerKit/CAIImagePickerKitTool'
     ss.subspec 'Resources' do |resources|
        resources.resource     = 'CAIImagePickerControllerKit/Assets/CAIImagePickerControllerKit.bundle'
     end
  end
  
  # ――― Project Linking ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
  #
  #  Link your library with frameworks, or libraries. Libraries do not include
  #  the lib prefix of their name.
  #

   s.framework  = "PhotosUI","Photos","CoreServices"

  # s.library   = "iconv"
  # s.libraries = "iconv", "xml2"


  # ――― Project Settings ――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
  #
  #  If your library depends on compiler flags you can set them in the xcconfig hash
  #  where they will only apply to your library. If you depend on other Podss
  #  you can include multiple dependencies to ensure it works.

  # s.requires_arc = true

  # s.xcconfig = { "HEADER_SEARCH_PATHS" => "$(SDKROOT)/usr/include/libxml2" }
   s.dependency "TZImagePickerController",'>=3.8.1'
   s.dependency "Masonry"
   s.dependency 'MBProgressHUD', '>=1.1.0'
   s.dependency 'ZXUIImageUtils'
end
